package sz.com.postoffice.jxyzwgcase.dao.app;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import sz.com.postoffice.jxyzwgcase.dao.BaseDao;
import sz.com.postoffice.jxyzwgcase.pojo.SigninRecord;

import java.util.List;

/**
 * @ClassName SigninRecordDao
 * @Deacription
 * @Author jmx
 * @Date 2020/11/26 21:56
 * @Version 1.0
 **/
@Mapper
public interface SigninRecordDao extends BaseDao<SigninRecord> {
    /**
     * 统计周期内使用签到打卡人数之和
     * @param adoIds
     * @param startTime
     * @param endTime
     * @return
     */
    Integer getSigninNum(@Param("list") List<String> adoIds,
                         @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<SigninRecord> getSigninByUserList(@Param("list") List<String> adoIds,
                                           @Param("startTime") String startTime, @Param("endTime") String endTime);

}
